﻿<UserControls:ScrumUserControl x:Class="ScrumTable.UI.View.WinTouch.UserControls.Tool.FilterBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter;assembly=ScrumTable.UI.View" xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" xmlns:UserControls="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls" Height="30" Width="150">
    <UserControl.Resources>

        <Converter:ConverterBoolVisibility x:Key="ConverterBoolVisibility" />
    
    </UserControl.Resources>


    <StackPanel Visibility="{Binding Path=ScrumData.IsUserConnected, Converter={StaticResource ConverterBoolVisibility}}" Orientation="Horizontal" Background="White">
        <s:SurfaceTextBox Width="150" Height="30" Text="{Binding ScrumData.Filter}" x:Name="FilterText" VerticalAlignment="Stretch" TextChanged="OnFilterTextChanged"/>        
    </StackPanel>
</UserControls:ScrumUserControl>
